package com.gujia.designpattern.adapter.extend;

import com.gujia.designpattern.adapter.GBTwoPlug;
import com.gujia.designpattern.adapter.interf.ThreePlug;


/**
 * 采用继承方式的插座适配器
 */
public class TwoPlugAdapterExtends extends GBTwoPlug implements ThreePlug{


    @Override
    public void powerWhreeThree() {
        System.out.println("借助继承适配器");
        this.powerWithTwo();
    }
}
